/**
 * 添加或者修改页面
 */
var SysConfigInfoDlg = {
    data: {
        uploadExcel:"",
        uploadFile:""
    }
};

layui.use(['form','upload'], function () {
    var $ = layui.jquery;
    var form = layui.form;
    var upload = layui.upload;
    var dataApi = "/collectorsAssociation";

    $("#uploadFile").click(function(){
        var formData = new FormData($("#upfile")[0]);
        //formData.set('file', document.getElementById("upload").files[0]);
        $.ajax({
            url: Feng.ctxPath + dataApi + "/importExcelForType",
            type: 'POST',
            cache: false,
            data: formData,
            processData: false,
            contentType: false
        }).done(function(res) {
            alert("hello")
        });
    });



    //返回按钮
    $("#backupPage").click(function () {
        window.location.href = Feng.ctxPath + dataApi
    });


});